package com.woniu.user.client;

import com.woniu.result.Result;
import com.woniu.user.client.result.UserVipRelationResultInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "userVIPQueryClient", name = "user")
public interface UserVIPQueryClient {
    //查看所有的VIP卡在售
    @GetMapping("vipCartInfo")
    public Result getVipCartInfo();

    //查看用户现有的会员卡
    @GetMapping("getUserVipCard")
    public Result<List<UserVipRelationResultInfo>> getUserVipCard(@RequestParam("userId") Integer userId);

}
